import request from '../utils/request';

export const fetchData = query => {
    return request({
        url: './table.json',
        method: 'get',
        params: query
    });
};

export const selectOtherLevelApplicationform = query => {
    return request({
        url: 'agentLevelSetting/selectOtherLevelApplicationform',
        method: 'post',
        params: query
    });
};

export const selectMyLevelApplicationform = query => {
    return request({
        url: 'agentLevelSetting/selectMyLevelApplicationform',
        method: 'post',
        params: query
    });
};

export const submitLevelApplicationform = query => {
    return request({
        url: 'agentLevelSetting/insertLevelApplicationform',
        method: 'post',
        params: query
    });
};

export const updateLevelApplicationform = query => {
    return request({
        url: 'agentLevelSetting/updateLevelApplicationform',
        method: 'post',
        params: query
    });
};

export const deleteLevelApplicationform = query => {
    return request({
        url: 'agentLevelSetting/deleteLevelApplicationform',
        method: 'post',
        params: query
    });
};

export const agreeLevelApplicationform = query => {
    return request({
        url: 'agentLevelSetting/agreeLevelApplicationform',
        method: 'post',
        params: query
    });
};

export const selectMyMember = query => {
    return request({
        url: 'agentLevelSetting/selectMyMember',
        method: 'post',
        params: query
    });
};

export const submitMember = query => {
    return request({
        url: 'agentLevelSetting/submitMember',
        method: 'post',
        params: query
    });
};